clear
** importing the data
use "C:\Dados Suplementares 3 - STATA Database.dta.dta"

** Encoding industries into labeled numeric
encode industry, generate(ind_d)

** Table 6 - models compensation_benefits
xtgls compensation_benefits cprop roa tam liqcor i.ind_d i.year , i(firm_code) t(year)
xtgls compensation_benefits familiar roa tam liqcor i.ind_d i.year , i(firm_code) t(year)
xtgls compensation_benefits estrangeiro roa tam liqcor i.ind_d i.year , i(firm_code) t(year)
xtgls compensation_benefits estatal roa tam liqcor i.ind_d i.year , i(firm_code) t(year)
xtgls compensation_benefits institucional roa tam liqcor i.ind_d i.year , i(firm_code) t(year)

** Table 7 - models diversity_labor_rights 
xtgls diversity_labor_rights cprop roa tam liqcor i.ind_d i.year , i(firm_code) t(year)
xtgls diversity_labor_rights familiar roa tam liqcor i.ind_d i.year , i(firm_code) t(year)
xtgls diversity_labor_rights estrangeiro roa tam liqcor i.ind_d i.year , i(firm_code) t(year)
xtgls diversity_labor_rights estatal roa tam liqcor i.ind_d i.year , i(firm_code) t(year)
xtgls diversity_labor_rights institucional roa tam liqcor i.ind_d i.year , i(firm_code) t(year)

** Table 8 - models training_health_safety
xtgls training_health_safety cprop roa tam liqcor i.ind_d i.year , i(firm_code) t(year)
xtgls training_health_safety familiar roa tam liqcor i.ind_d i.year , i(firm_code) t(year)
xtgls training_health_safety estrangeiro roa tam liqcor i.ind_d i.year , i(firm_code) t(year)
xtgls training_health_safety estatal roa tam liqcor i.ind_d i.year , i(firm_code) t(year)
xtgls training_health_safety institucional roa tam liqcor i.ind_d i.year , i(firm_code) t(year)

log close
